package com.guanzi.activiti.controller.config;

import com.guanzi.activiti.utils.SecurityUtil;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.core.userdetails.UserDetailsService;

@Configuration
public class ActivitiSecurityConfiguration {

    @Bean
    public UserDetailsService userDetailsService() {
        return SecurityUtil.findInstance();
    }

}
